package com.zwcl.glass.tools.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zwcl.common.core.domain.entity.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  用户录入的档案
 * </p>
 *
 * @author xieyongping
 * @since 2021-01-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("glass_user_data")
public class UserData extends BaseEntity<UserData> {

    private static final long serialVersionUID = 1L;

    /**
     * 20
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer userId;

    /**
     * 球镜度数
     */
    private BigDecimal sphere;

    /**
     * 柱镜度数
     */
    private BigDecimal cylinder;

    /**
     * 轴向
     */
    private Integer axialDirection;

    /**
     * 矫正视力
     */
    private BigDecimal cva;

    /**
     * 棱镜
     */
    private Integer prism;

    /**
     * 瞳距
     */
    private Integer ipd;

    /**
     * 瞳高
     */
    private Integer iph;

    /**
     * 下加光
     */
    private BigDecimal lowRelight;

    /**
     * 主辅视力眼
     */
    private String masterEye;

    /** 验光时间 */
    private String optometryTime;

    /**
     * 上传的图片
     */
    private String picUrl;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
